package com.boot.model;

import java.io.Serializable;

/**
 * @Auther: zhengshunzhi
 * @Date: 2018/8/30 13:51
 * @Description: 用户实体类
 */
public class User implements Serializable {
    //用户id
    private long id;
    //用户名
    private String name;
    //密码
    private String password;

    public User() {
    }

    public User(long id, String name, String password) {
        this.id = id;
        this.name = name;
        this.password = password;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }


    @Override
    public String toString() {
        return "{" + "id:" + this.getId() + "," + "name:" + this.getName() + "," + "password:" + this.getPassword() + "}";
    }
}
